package com.buba.service;

import entity.sparemanage.SpareLedger;
import com.baomidou.mybatisplus.extension.service.IService;
import entity.sparemanage.dto.PagesDto;
import entity.sparemanage.dto.SpareLedgerDto;
import entity.sparemanage.dto.addSpareLedgerDto;
import utils.PageResult;
import entity.sparemanage.dto.SpareLedgerDto;

/**
 * <p>
 * 备件台账 服务类
 * </p>
 *
 * @author beisheng
 * @since 2023-05-18
 */
public interface SpareLedgerService extends IService<SpareLedger> {

    /* *
     * @Author: beisheng
     * @Descriprion: 备件台账列表
     * @Date: 2023/5/19 8:47
     * @Return: common.R
     * @Param: [spareLedger, pagesDto]
     */

    PageResult selAllSpareLedger(SpareLedgerDto spareLedger);

    /* *
     * @Author: beisheng
     * @Descriprion: 新增备件
     * @Date: 2023/5/23 10:14
     * @Return: common.R
     * @Param: [add]
     */

    void add(addSpareLedgerDto add);

    /* *
     * @Author: beisheng
     * @Descriprion: 备件单查
     * @Date: 2023/5/24 8:51
     * @Return: common.R
     * @Param: [id]
     */

    addSpareLedgerDto selOneToSpare(Integer id);

    /* *
     * @Author: beisheng
     * @Descriprion: 修改备件信息
     * @Date: 2023/5/24 14:06
     * @Return: common.R
     * @Param: [updates]
     */

    void updateSpareLedger(addSpareLedgerDto updates);
    /**
     * @return common.R
     * @Author atlong
     * @Description 查询备件列表信息
     * @Date 2023/6/17 10:46
     * @Param [spareLedger]
     **/
    utils.pageutil.PageResult selSpareLedgers(SpareLedgerDto spareLedger);
}
